<extend name="Public/base"/>

<block name="body">

       
                   <div class="data-table table-striped">
                           


                            <div class="tab-content">
                                <div id="home" class="tab-pane in active">
                                    <form action="{:U('Index/sortList',array('op'=>'order'))}" method="post">
                                        <div class="table-responsive">
                                            <table class="table table-striped table-bordered table-hover">
                                                <thead>
                                                    <tr class="color428bca">
                                                        <th width="50">排序</th>
                                                        <th>分类名称</th>                                                                        
                                                        <th class="center">状态</th>
                                                       
                                                        <th>操作</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                <notempty name="categoryList">
                                                <volist name="categoryList" id="data">
                                                    <tr class="pointer even" title="">
                                                        <td><input type="text" name="{$data['id']}" value="{$data['id']}" style="width:30px;padding:0 5px;margin:0"/></td>
                                                        <td>{$data['category_name']}</td>
                                                        <td class="center"><a href="{:U('CategoryGoods/status',array('id'=>$data['id']))}">{$data['status']==1?'<font color="green">开启</font>':'<font color="red">关闭</font>'}</a></td>

                                                        <td>
                                                            <a href="{:U('CategoryGoods/add',array('id'=>$data['id']))}">编辑</a>
                                                            |
                                                            <a onclick="return confirm('该分类下的商品将全部删除，确定删除')" href="{:U('CategoryGoods/del',array('id'=>$data['id']))}" title="删除">删除</a>
                                                        </td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                            </table>
                                           
                                            <else/>
                                            <tr><td colspan="3" class="text-center"><span class="empty"><i>aOh! 暂时还没有内容! </i></span></td></tr>
                                            </tbody>
                                            </table>

                                            </notempty>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>

</block>
<include file="common_admin:footer" />